import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import {routers} from './menus'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "login" */ '../views/login/login.vue')
  },
  {
    path: '/404',
    name: '404',
    component: () => import(/* webpackChunkName: "404" */ '../views/404.vue')
  },
  ...routers

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
